immodule: Move private functions to a private header
authorBenjamin Otte <otte@redhat.com>
Tue, 8 Nov 2011 19:03:09 +0000 (20:03 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 8 Nov 2011 20:14:05 +0000 (21:14 +0100)
gtk/Makefile.am
gtk/gtkimmodule.c
gtk/gtkimmodule.h
gtk/gtkimmoduleprivate.h [new file with mode: 0644]
gtk/gtkimmulticontext.c

index 0edd14a0abe38de97b088e8dc97d3dcf65d6153e..514c2c781223f3b4a71cb3387a37b5386a5104eb 100644 (file)
@@ -414,6 +414,7 @@ gtk_private_h_sources =             \
        gtkfontchooserutils.h   \
        gtkiconcache.h          \
        gtkimageprivate.h       \
+       gtkimmoduleprivate.h    \
        gtkimcontextsimpleseqs.h \
        gtkintl.h               \
        gtkkeyhash.h            \
index de03fda507915197df0d543748b25be6fda5f8ec..4b38d6872df4729eed376ef041a1e219eda28d82 100644 (file)
@@ -33,6 +33,7 @@
 #include <glib/gstdio.h>
 #include <gmodule.h>
 #include "gtkimmodule.h"
+#include "gtkimmoduleprivate.h"
 #include "gtkimcontextsimple.h"
 #include "gtksettings.h"
 #include "gtkprivate.h"
index 794b36fcfcc1aa2f2aac8c148abd164578e7191c..750e603506bc723466758503c20b7e42a4c8ffce 100644 (file)
@@ -35,13 +35,6 @@ struct _GtkIMContextInfo
   const gchar *default_locales;
 };
 
-/* Functions for use within GTK+
- */
-void           _gtk_im_module_list                   (const GtkIMContextInfo ***contexts,
-                                                     guint                    *n_contexts);
-GtkIMContext * _gtk_im_module_create                 (const gchar              *context_id);
-const gchar  * _gtk_im_module_get_default_context_id (GdkWindow                *client_window);
-
 /* The following entry points are exported by each input method module
  */
 
diff --git a/gtk/gtkimmoduleprivate.h b/gtk/gtkimmoduleprivate.h
new file mode 100644 (file)
index 0000000..d559c28
--- /dev/null
@@ -0,0 +1,35 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2000 Red Hat Software
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GTK_IM_MODULE_PRIVATE_H__
+#define __GTK_IM_MODULE_PRIVATE_H__
+
+#include <gdk/gdk.h>
+#include <gtk/gtkimmodule.h>
+
+G_BEGIN_DECLS
+
+void           _gtk_im_module_list                   (const GtkIMContextInfo ***contexts,
+                                                     guint                    *n_contexts);
+GtkIMContext * _gtk_im_module_create                 (const gchar              *context_id);
+const gchar  * _gtk_im_module_get_default_context_id (GdkWindow                *client_window);
+
+G_END_DECLS
+
+#endif /* __GTK_IM_MODULE_PRIVATE_H__ */
index dee54ec1743da9aae725ae3b493bfe34ed0696d0..c88294e53f69849afdfe05b43c55cfa29dd92f3a 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "gtkimmulticontext.h"
 #include "gtkimmodule.h"
+#include "gtkimmoduleprivate.h"
 #include "gtklabel.h"
 #include "gtkmain.h"
 #include "gtkradiomenuitem.h"